package com.oa.co.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author Lone Ranger
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderRoom {

    //预约编号
    private String order_id;

    /**
     * 预约的会议id
    */
    private Integer room_id;

    /**
     *   用于两表联查时，显示出预约会议的名字
     * */
    private String order_room_name;

    //预约者名字
    private String username;

    //所属部门
    private String department;

    //创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date create_time;

    //会议主题
    private String meeting_theme;

    //会议开始时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date start_time;

    //会议结束时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date end_time;

    //参会人数
    private Integer people_num;

}
